<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>物品入库</title>
	<link href="<%=path%>/CSS/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=path%>/JQuery/jquery-1.8.2.js"></script>
	<%@ include file="/WEB-INF/JSP/ajax.jsp"%>
	<script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
	<style type="text/css">
		.seachform li label {
			line-height: 45px;
			color: #444444
		}
		.scinput {
			line-height: 10px;
			margin-top: 5px
		}
		.scinput1 {
			margin-top: 5px;
			height: 30px;
		}

		.scbtn {
			background: #57a0ff;
			border-radius: 20px;
			width: 110px;
			margin-top: 4px;
			height: 35px
		}

		.scbtn2 {
			height: 20px;
			background: #57a0ff;
			border-radius: 20px;
			width: 50px;
			color: #fff;
			display: none;
		}

		.tablelist {
			border: none;
			margin: 10px 20px
		}

		.tablelist th {
			background: none;
			border-bottom: none;
		}

		thead {
			background: #f2f2f2
		}

		tbody tr:nth-child(even) {
			background: #f7f8fd
		}

		.tablelist th {
			height: 45px;
			padding-left: 30px
		}

		.tablelist td {
			border-right: none;
			padding-left: 30px
		}

		tbody tr {
			height: 38px
		}

		.check {
			padding-left: 0px
		}

		a {
			cursor: pointer;
		}

		.tablelist {
			width: 500px;
			border: 0px;
			border-collapse: collapse;
			border-spacing: 0;
		}

		.tablelist tr {
			height: 30px;
		}

		.tablelist tr td {
			border-bottom: 1px solid #BBB;
		}

		.qx td:nth-child(7) {
			border-right: solid 1px #ccc;
		}

		.tip {

		}
	</style>
	<%--<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>--%>
	<%--<script type="text/javascript" src="js/jquery.tablesort.js"></script>--%>
	<%--<script type="text/javascript">--%>

        <%--$(function() {--%>
            <%--$('tablelist').tablesort().data('tablesort');--%>
            <%--var i = 0;--%>
            <%--$(".tablelist tr th a").click(function() {--%>
                <%--if (i % 2 == 0) {--%>
                    <%--$(".sj").text('升序');--%>
                    <%--i++;--%>
                <%--} else {--%>
                    <%--$(".sj").text('降序');--%>
                    <%--i++;--%>
                <%--}--%>
            <%--})--%>
        <%--})--%>
	<%--</script>--%>
</head>
<body style="background: #f5f5f5;padding: 0 10px;">
<div class="place" style="background: #f5f5f5;margin-top: 10px">
	<ul class="placeul" >
		<li><a href="#">库存管理</a></li>
		<li><a href="#">物品入库</a></li>

	</ul>
</div>

<div class="rightinfo" style="background: #fff;border-radius:10px;height: 45px;">
	<form action="<%=path%>/DrivingSys/selectInwareHouseByFid" method="post">
		<ul class="seachform">
			<li><label>物品名称</label><input name="rkGoodsname" type="text" class="scinput" value="${rkGoodsname}"/></li>
			<li><label>物品类型</label><input name="rkGoodstype" type="text" class="scinput" value="${rkGoodstype}"/></li>

			<li><label>开始时间</label><input class="scinput1" name="beginTime" type="text"
										  onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}',dateFmt:'yyyy-MM-dd'})"
										  id="datemin" class="input-text Wdate" style="width:150px;" value="${beginTime}"></li>
			<li><label>结束时间</label><input class="scinput1" name="endTime" type="text"
										  onfocus="WdatePicker({minDate:'#F{$dp.$D(\'datemin\')}',dateFmt:'yyyy-MM-dd'})"
										  id="datemax" class="input-text Wdate" style="width:150px;" value="${endTime}"></li>
			<li><label>&nbsp;</label><input name="" type="submit"
											class="scbtn" value="立即查询"/></li>
		</ul>
	</form>
</div>


<div style="width: 100%;overflow:auto;margin-bottom: 20px;margin-top: 30px;background: #fff;border-radius:10px;box-shadow: 0 0 10px #f2f2f2;min-height: 600px">
	<ul>
		<li style="height: 40px;text-align: left;color: #999999;">
				  <span style="font-size: 12px;">
				  <shiro:hasPermission name="/insertInwareHouse">
					  <img alt="" style="margin-top: 20px;margin-left: 22px;height: 12px;" src="<%=path%>/images/list/xz.png">
					  &nbsp;<a href="<%=path%>/DrivingSys/insertInwareHouse">新增</a>
				  </shiro:hasPermission>
				  <shiro:hasPermission name="/deleteInwareHouseByFid">
					  <img alt="" style="margin-top: 20px;margin-left: 22px;height: 12px;" src="<%=path%>/images/list/sc.png">
					  &nbsp;<a class="del">删除</a>
				  </shiro:hasPermission>
				  <shiro:hasPermission name="/queryInwareHouseByFid">
					  <img alt="" height="11px" src="<%=path%>/images/list/xg.png" style="padding-left: 20px">
					  <a  class="modify">修改</a>
				  </shiro:hasPermission>
					  <shiro:hasPermission name="/importInwareHouse">
					  <img alt="" style="margin-top: 20px;margin-left: 22px;height: 12px;width: 14px"
						   src="<%=path%>/images/list/excel.png">
						  <a id="importInwareHouse">导出Excle</a>
					  </shiro:hasPermission>
				  </span>
		</li>
	</ul>
	<table class="tablelist" style="width: auto;white-space:nowrap;" id="table1">
		<thead>
		<tr class="sq">
			<th><input type="checkbox" class="check2" name="praiseAll"></th>

			<th>单据编号</th>
			<th>审核人名称</th>
			<th>制单人名称</th>
			<th>单据状态</th>
			<th>单据状态</th>
			<th>创建时间</th>
			<th>驾校名称</th>
			<th>物品名称</th>
			<th>物品类型</th>
			<th>规格编号</th>
			<th>物品单价</th>
			<th>物品入库单价</th>
			<th>入库物品数量</th>
			<th>入库物品总价</th>
			<th>入库物品用途</th>
			<th>操作</th>
		</tr>
		</thead>
		<c:forEach items="${inwareHouses}" var="inwareHouses" varStatus="fustatus">
			<!-- 1.1 如果子类集合长度小等于5 则就按子类的长度合并 ===开始=== -->

			<c:if test="${fn:length(inwareHouses.inwareHouseEntries) lt 6 }">
				<tr class="qx">
				<td rowspan="${fn:length(inwareHouses.inwareHouseEntries)  }">
					<c:if test="${inwareHouses.cfbillstate > '3'}"><%-- 审核状态--%>
						<input type="checkbox" class="check" disabled="disabled" value="${inwareHouses.fid}"/>
					</c:if>
					<c:if test="${inwareHouses.cfbillstate <= '3'}">
						<input type="checkbox" class="check" name="check" value="${inwareHouses.fid}"/>
					</c:if>
					<input type="hidden" name="tdlength" value="${fn:length(inwareHouses.inwareHouseEntries) }"/>
				</td>
				<td rowspan="${fn:length(inwareHouses.inwareHouseEntries) }" class="fid">${inwareHouses.fnumber}</td>
				<td rowspan="${fn:length(inwareHouses.inwareHouseEntries) }">${inwareHouses.auditname}</td>
				<td rowspan="${fn:length(inwareHouses.inwareHouseEntries) }">${inwareHouses.createname}</td>
				<c:if test="${inwareHouses.cfbillstate == '4'}">
					<td class="state" rowspan="${fn:length(inwareHouses.inwareHouseEntries) }">提交</td>
				</c:if>
				<c:if test="${inwareHouses.cfbillstate == '5'}">
					<td class="state" rowspan="${fn:length(inwareHouses.inwareHouseEntries) }">审核</td>
				</c:if>
				<c:if test="${inwareHouses.cfbillstate == '3'}">
					<td class="state" rowspan="${fn:length(inwareHouses.inwareHouseEntries) }">保存</td>
				</c:if>
				<c:if test="${empty inwareHouses.cfbillstate }">
					<td class="state" rowspan="${fn:length(inwareHouses.inwareHouseEntries) }">没有状态</td>
				</c:if>
				<td rowspan="${fn:length(inwareHouses.inwareHouseEntries) }">${inwareHouses.fcreatetime}</td>
				<td rowspan="${fn:length(inwareHouses.inwareHouseEntries) }">${inwareHouses.companyname}&nbsp;&nbsp;&nbsp;</td>

				<c:forEach items="${inwareHouses.inwareHouseEntries}" var="inwareHouseEntries" varStatus="status">
					<c:if test="${status.first}">
						<td>${inwareHouseEntries.rkGoodsname}</td>
						<td>${inwareHouseEntries.rkGoodstype}</td>
						<td>${inwareHouseEntries.rkGgid}</td>
						<td>${inwareHouseEntries.rkGoodsprice}</td>
						<td>${inwareHouseEntries.rkInwarehouseprice}</td>
						<td>${inwareHouseEntries.rkInwarehousequantity}</td>
						<td>${inwareHouseEntries.rkInwarehousetotalprices}</td>
						<td>${inwareHouseEntries.rkInwarehouseuse}</td>

						<td rowspan="${fn:length(inwareHouses.inwareHouseEntries) }">
							<shiro:hasPermission name="/queryInwareHouseByFid">
								<img alt="" height="11px" src="<%=path%>/images/list/xg.png">
								<a href="<%=path%>/DrivingSys/queryInwareHouseByFid?fid=${inwareHouses.fid}"
								   class="tablelink">修改</a>&nbsp;&nbsp;&nbsp;
							</shiro:hasPermission>
							<shiro:hasPermission name="/deleteInwareHouseByFid">
								<img alt="" style="margin-top: 20px;margin-left: 22px;height: 12px;"
									 src="<%=path%>/images/list/sc.png">
								&nbsp;<a class="delOne" class="tablelink" style="color: #056dae">删除<input type="hidden" value="${inwareHouses.fid}"></a>
								&nbsp;&nbsp;&nbsp;
							</shiro:hasPermission>
						</td>
						</tr>
					</c:if>
					<c:if test="${status.index gt 0  }">
						<tr>
							<td style="display: none"><input type="hidden" class="check" value="${inwareHouses.fid}"/>
							</td>
							<td >${inwareHouseEntries.rkGoodsname}</td>
							<td>${inwareHouseEntries.rkGoodstype}</td>
							<td>${inwareHouseEntries.rkGgid}</td>
							<td>${inwareHouseEntries.rkGoodsprice}</td>
							<td>${inwareHouseEntries.rkInwarehouseprice}</td>
							<td>${inwareHouseEntries.rkInwarehousequantity}</td>
							<td>${inwareHouseEntries.rkInwarehousetotalprices}</td>
							<td>${inwareHouseEntries.rkInwarehouseuse}</td>
						</tr>
					</c:if>

				</c:forEach>
			</c:if>
			<!-- 1.1 如果子类集合长度小等于5 则就按子类的长度合并 ===结束=== -->
			<!-- ------------------------------------------------------------------------------------------------------------- -->

			<!--2.1 如果子类集合长度大于5 ===开始=== -->

			<c:if test="${fn:length(inwareHouses.inwareHouseEntries) gt 5 }">
				<tr id="hebingfuhang${fustatus.index }" class="qx">
				<td rowspan="6">
					<c:if test="${inwareHouses.cfbillstate > '3'}">
						<input type="checkbox" class="check" disabled="disabled" value="${inwareHouses.fid}"/>
					</c:if>
					<c:if test="${inwareHouses.cfbillstate <= '3'}">
						<input type="checkbox" class="check" name="check" value="${inwareHouses.fid}"/>
					</c:if>
					<input type="hidden" name="tdlength" value="${fn:length(inwareHouses.inwareHouseEntries) }"/>
				</td>
				<td rowspan="6" class="fid">${inwareHouses.fnumber}</td>
				<td rowspan="6">${inwareHouses.auditname}</td>
				<td rowspan="6">${inwareHouses.createname}</td>
				<c:if test="${inwareHouses.cfbillstate == '4'}">
					<td class="state" rowspan="6">提交</td>
				</c:if>
				<c:if test="${inwareHouses.cfbillstate == '5'}">
					<td class="state" rowspan="6">审核</td>
				</c:if>
				<c:if test="${inwareHouses.cfbillstate == '3'}">
					<td class="state" rowspan="6">保存</td>
				</c:if>
				<c:if test="${empty inwareHouses.cfbillstate}">
					<td class="state" rowspan="6"></td>
				</c:if>
				<td rowspan="6">${inwareHouses.fcreatetime}</td>
				<td rowspan="6">${inwareHouses.companyname}&nbsp;&nbsp;&nbsp;</td>

				<c:forEach items="${inwareHouses.inwareHouseEntries}" var="inwareHouseEntries" varStatus="status">
					<c:if test="${status.first}">
						<td>${inwareHouseEntries.rkGoodsname}</td>
						<td>${inwareHouseEntries.rkGoodstype}</td>
						<td>${inwareHouseEntries.rkGgid}</td>
						<td>${inwareHouseEntries.rkGoodsprice}</td>
						<td>${inwareHouseEntries.rkInwarehouseprice}</td>
						<td>${inwareHouseEntries.rkInwarehousequantity}</td>
						<td>${inwareHouseEntries.rkInwarehousetotalprices}</td>
						<td>${inwareHouseEntries.rkInwarehouseuse}</td>
						<td rowspan="6">
							<shiro:hasPermission name="/queryInwareHouseByFid">
								<img alt="" height="11px" src="<%=path%>/images/list/xg.png">
								<a href="<%=path%>/DrivingSys/queryInwareHouseByFid?fid=${inwareHouses.fid}"
								   class="tablelink">修改</a>&nbsp;&nbsp;&nbsp;
							</shiro:hasPermission>
							<shiro:hasPermission name="/deleteInwareHouseByFid">
								<img alt="" style="margin-top: 20px;margin-left: 22px;height: 12px;"
									 src="<%=path%>/images/list/sc.png">
								&nbsp;<a class="delOne" class="tablelink" style="color: #056dae">删除<input type="hidden" class="fid" value="${inwareHouses.fid}"></a>
								&nbsp;&nbsp;&nbsp;
							</shiro:hasPermission>
						 </td>
						</tr>
					</c:if>
					<!--2.1.1 跳过第一行打印1至4条的数据 默认显示部分 ==开始== -->
					<c:if test="${status.index gt 0 and status.index lt 5 }">
						<tr>
							<td style="display: none"><input type="hidden" class="check" value="${inwareHouses.fid}"/>
							</td>
							<td>${inwareHouseEntries.rkGoodsname}</td>
							<td>${inwareHouseEntries.rkGoodstype}</td>
							<td>${inwareHouseEntries.rkGgid}</td>
							<td>${inwareHouseEntries.rkGoodsprice}</td>
							<td>${inwareHouseEntries.rkInwarehouseprice}</td>
							<td>${inwareHouseEntries.rkInwarehousequantity}</td>
							<td>${inwareHouseEntries.rkInwarehousetotalprices}</td>
							<td>${inwareHouseEntries.rkInwarehouseuse}</td>
						</tr>
					</c:if>
					<!--2.1.1 跳过第一行打印1至4条的数据 默认显示部分 ==结束== -->

					<!--2.1.2 打印5至子类长度的数据 隐藏部分 ==开始==-->
					<c:if test="${status.index gt 4 }">
						<tr class="fuhang${fustatus.index }" style="display:none">
							<td style="display: none"><input type="hidden" class="check" value="${inwareHouses.fid}"/>
							</td>
							<td>${inwareHouseEntries.rkGoodsname}</td>
							<td>${inwareHouseEntries.rkGoodstype}</td>
							<td>${inwareHouseEntries.rkGgid}</td>
							<td>${inwareHouseEntries.rkGoodsprice}</td>
							<td>${inwareHouseEntries.rkInwarehouseprice}</td>
							<td>${inwareHouseEntries.rkInwarehousequantity}</td>
							<td>${inwareHouseEntries.rkInwarehousetotalprices}</td>
							<td>${inwareHouseEntries.rkInwarehouseuse}</td>
						</tr>
					</c:if>
					<!--2.1.2 打印5至子类长度的数据 隐藏部分 ==结束== -->
					<c:if test="${status.last }">
						<tr id="fuhang${fustatus.index }" class="sq">
							<td style="display: none"><input type="hidden" class="check" value="${inwareHouses.fid}"/>
							</td>
							<td style="margin:0 auto;"><a class="showfuhang${fustatus.index }"
														  onclick="showdetails($(this));">查看详情</a>
								<a style="display:none" class="hidefuhang${fustatus.index }"
								   onclick="hidedetails($(this));">收起详情</a>
							</td>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
					</c:if>
				</c:forEach>
			</c:if>
		</c:forEach>
	</table>
</div>
<pg:pager items="${pb.tr}" url="${pb.url}" export="offset,currentPageNumber=pageNumber" maxPageItems="${pb.ps}">
	<pg:param name="rkGoodsname" value="${rkGoodsname}"/>
	<pg:param name="rkGoodstype" value="${rkGoodstype}"/>
	<pg:param name="beginTime" value="${beginTime}"/>
	<pg:param name="endTime" value="${endTime}"/>
	<pg:index>
		<pg:first>
			<a href="${pageUrl}&&type=${type}" >
				<nobr>
					[首页]
				</nobr>
			</a>
		</pg:first>
		<pg:prev><a href="${pageUrl}&&type=${type}">前一页</a></pg:prev>
		<pg:pages>
			<c:choose>
				<c:when test="${currentPageNumber eq pageNumber}">
					<font color="red">${pageNumber }</font>
				</c:when>
				<c:otherwise>
					<a href="${pageUrl}&&type=${type}">${pageNumber}</a>
				</c:otherwise>
			</c:choose>
		</pg:pages>
		<pg:next><a href="${pageUrl}&&type=${type}">下一页</a></pg:next>
		<pg:last><a href="${pageUrl}&&type=${type}"><nobr>[尾页]</nobr></a></pg:last>
	</pg:index>
</pg:pager>
<div style="height: 30px"></div>
<div id="tip2"></div>
<div class="tip">
	<div class="tiptop">
		<span>提示信息</span>
	</div>
	<div class="tipinfo">
		<span><img src="<%=path%>/images/ticon.png"/></span>
		<div class="tipright">
			<p>是否确认对信息删除 ？</p>
			<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
		</div>
	</div>
	<div class="tipbtn">
		<input name="" type="button" class="sure" value="确定"/>&nbsp; <input
			name="" type="button" class="cancel" value="取消"/>
	</div>
</div>

</body>


<script type="text/javascript">

    $(document).ready(function () {

        var type = "${type}"
        if (type == null || type == '') {

        } else {
            showAlert('保存成功！','queryswareHouse/look.action?state=first');
        }

        //设置全选功选
        $('.check2').click(function () {
            if ($(this).attr("checked")) {
                $("input[name='check']").prop("checked", true)
            } else {
                $("input[name='check']").removeAttr('checked')
            }
        });

    });
    //删除多个
    $('.del').click(function () {
        var sq = $("input[name='check']").is(":checked");
        if (sq == false) {
            alert("请至少选择一条数据删除")
        } else {
            $("#tip2").css('visibility', 'visible');
            $(".tip").fadeIn(200);
        }
        $(".sure").unbind("click").click(function () {
            var str = new Array();
            var fnumber = new Array();
            var s = '0';
            $("input[name='check']:checked").each(function (i) {
                var state = $(this).parent().parent().find(".state").text();
                if (state == "提交" || state == "审核") {
                    s = '1';
                    return false
                } else {
                    str[i] = $(this).val();
                    fnumber[i] = $(this).parent().next().text();
                }
            })
            if (s == '1') {
                alert("提交或审核状态不能被删除")
                $(".tip").fadeOut(100);
                $("#tip2").css('visibility', 'hidden');
            } else {
                location = '<%=path%>/DrivingSys/deleteInwareHouseByFid?deleteId=' + str + '&fnumber=' + fnumber;
            }
        })

        $(".cancel").click(function () {
            $(".tip").fadeOut(100);
            $("#tip2").css('visibility', 'hidden');
        });
    })
    //删除单个
    $('.delOne').click(function () {
        var fid = $(this).find(".fid").val();
        var state2 = $(this).parent().parent().find(".state").text();
        var fnumber2 = $(this).parent().parent().find("td").eq(1).text();
        if (state2 == "提交" || state2 == "审核") {
            alert("提交或审核状态不能被删除")
        } else {
            $("#tip2").css('visibility', 'visible');
            $(".tip").fadeIn(200);
        }
        $(".sure").unbind("click").click(function () {
            location = '<%=path%>/DrivingSys/deleteInwareHouseByFid?fid=' + fid + '&fnumber2=' + fnumber2;
        })

        $(".cancel").click(function () {
            $(".tip").fadeOut(100);
            $("#tip2").css('visibility', 'hidden');
        });
    })

    //修改
    $(".modify").click(function () {
        var stringFid;
        var fids = document.getElementsByName("check");
        for (var i = 0; i < fids.length; i++) {
            if (fids[i].checked) {
                stringFid = fids[i].value;
                location = '<%=path%>/DrivingSys/queryInwareHouseByFid?fid=' + stringFid;
                return false
            }
        }
        if (stringFid == null || stringFid.length == 0) {
            alert("请至少选择一条数据修改")
            return false
        }
    })

    //查询详情
    $("tr:not(.sq)").dblclick(function () {
        var fid2 = $(this).find(".check").val();
        //避免fid中有+，或者特殊字符
        var fid = encodeURI(fid2).replace(/\+/g, '%2B')
        location = '<%=path%>/DrivingSys/queryInwareHouseByFid?fid=' + fid + '';
    })

    //显示
    function showdetails(obj) {
        var row = $(obj).parent().parent().prop("id")
        //隐藏点击查看更多
        $(".show" + row).hide()
        //显示点击收起详情
        $(".hide" + row).show()
        //显示数据详情
        $("." + row).show()
        var hebingshu = $("#hebing" + row + " input:hidden[name=tdlength]").val()
        hebingshu = Number(hebingshu)
        hebingshu += 1
        $("#hebing" + row).find("td").eq(0).attr("Rowspan", hebingshu)
        $("#hebing" + row).find("td").eq(1).attr("Rowspan", hebingshu)
        $("#hebing" + row).find("td").eq(2).attr("Rowspan", hebingshu)
        $("#hebing" + row).find("td").eq(3).attr("Rowspan", hebingshu)
        $("#hebing" + row).find("td").eq(4).attr("Rowspan", hebingshu)
        $("#hebing" + row).find("td").eq(5).attr("Rowspan", hebingshu)
        $("#hebing" + row).find("td").eq(6).attr("Rowspan", hebingshu)
        $("#hebing" + row).find("td:last").attr("Rowspan", hebingshu)
    }


    //隐藏
    function hidedetails(obj) {
        var row = obj.parent().parent().prop("id")
        //显示点击查看更多
        $(".show" + row).show()
        //隐藏点击收起详情
        $(".hide" + row).hide()
        //隐藏大于5条的数据
        $("." + row).hide()
        //合并行改成只显示之前的5条加一条点击查看更多tr
        $("#hebing" + row).find("td").eq(0).attr("Rowspan", 6)
        $("#hebing" + row).find("td").eq(1).attr("Rowspan", 6)
        $("#hebing" + row).find("td").eq(2).attr("Rowspan", 6)
        $("#hebing" + row).find("td").eq(3).attr("Rowspan", 6)
        $("#hebing" + row).find("td").eq(4).attr("Rowspan", 6)
        $("#hebing" + row).find("td").eq(5).attr("Rowspan", 6)
        $("#hebing" + row).find("td").eq(6).attr("Rowspan", 6)
        $("#hebing" + row).find("td:last").attr("Rowspan", 6)

    }
    //导出
    $("#importInwareHouse").click(function () {
        var rkGoodsname = $("input[name='rkGoodsname']").val();//入库物品名称
        var rkGoodstype = $("input[name='rkGoodstype']").val();//入库物品类型
        var beginTime = $("input[name='beginTime']").val();//开始时间
        var endTime = $("input[name='endTime']").val();//结束时间
        location = '<%=path%>/DrivingSys/importInwareHouse?rkGoodsname=' + rkGoodsname + '&rkGoodstype=' + rkGoodstype + '&beginTime=' + beginTime + '&endTime=' + endTime
    })
</script>
</html>